<?php
return array (
		'controllers' => array (
				'invokables' => array (
						'Home\Controller\Home' => 'Home\Controller\HomeController',
						'Home\Controller\Login' => 'Home\Controller\LoginController' 
				) 
		),
		
		'router' => array (
				'routes' => array (
						'home' => array (
								'type' => 'segment',
								'options' => array (
										'route' => '/home[/:action][/:id]',
										'constraints' => array (
												'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
												'id' => '[0-9]+' 
										),
										'defaults' => array (
												'controller' => 'Home\Controller\Home',
												'action' => 'index' 
										) 
								) 
						),
						'login' => array (
								'type' => 'segment',
								'options' => array (
										'route' => '/login[/:action][/:id]',
										'constraints' => array (
												'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
												'id' => '[0-9]+' 
										),
										'defaults' => array (
												'controller' => 'Home\Controller\Login',
												'action' => 'index' 
										) 
								) 
						)
				) 
		),
		
		'view_manager' => array (
				'display_not_found_reason' => true,
				'display_exceptions' => true,
				'doctype' => 'HTML5',
				'not_found_template' => 'error/404',
				'exception_template' => 'error/index',
				'template_map' => array (
						'layout/index' => __DIR__ . '/../view/layout/index.phtml',
						'layout/login' => __DIR__ . '/../view/layout/login.phtml',
						'error/404' => __DIR__ . '/../view/error/404.phtml',
						'error/index' => __DIR__ . '/../view/error/index.phtml' 
				),
				'template_path_stack' => array (
						'home' => __DIR__ . '/../view' ,
						'login' => __DIR__ . '/../view' ,
				) 
		),
		
		'module_layouts' => array (
				'Home' => array (
						'default' => 'layout/index',
						'product' => 'layout/product' 
				),
				'Login' => array (
						'default' => 'layout/login',
						'index' => 'layout/login' ,
				) 
		) 
);